import numpy
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
import matplotlib.pyplot as plt
import numpy as np

n1=plt.imread('111.jpg')
print(type(n1),n1)
plt.imshow(n1)

n2=np.array([0.299,0.548,0.114])
x=np.dot(n1,n2)
plt.imshow(x,cmap='gray')
plt.show()